package com.skyline.spot.model;

import java.util.Date;

import com.skyline.base.type.Activity;
import com.skyline.base.type.SpotType;
import com.skyline.common.util.CommonUtils;

public class Spot {
	private Long id;
	private String name;
	private String portrait;
	private SpotType category;

	private Long creatorId;
	private String creatorEmail;
	private String creatorNickname;
	private String creatorPortrait;

	private Long administratorId;
	private String administratorEmail;
	private String administratorNickname;
	private String administratorPortrait;

	private Date createTime;
	private Date updateTime;

	private String Introduction;

	// 以后可以 采用id分类来存储
	private String country;
	private String province;
	private String city;
	private String siteId;

	private String detailAddress;
	private Double latitude;// 纬度
	private Double longitude;// 经度
	
	protected Integer visitNum;
	private float star;
	private Integer votes;

	private Activity activity;// 状态用来判断是否被删除

	public void setActivity(Activity activity) {
		this.activity = activity;

	}

	public Activity getActivity() {
		return activity;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	public SpotType getCategory() {
		return category;
	}

	public void setCategory(SpotType category) {
		this.category = category;
	}

	public Long getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}

	public String getCreatorEmail() {
		return creatorEmail;
	}

	public void setCreatorEmail(String creatorEmail) {
		this.creatorEmail = creatorEmail;
	}

	public String getCreatorNickname() {
		return creatorNickname;
	}

	public void setCreatorNickname(String creatorNickname) {
		this.creatorNickname = creatorNickname;
	}

	public String getCreatorPortrait() {
		return creatorPortrait;
	}

	public void setCreatorPortrait(String creatorPortrait) {
		this.creatorPortrait = creatorPortrait;
	}

	public Long getAdministratorId() {
		return administratorId;
	}

	public void setAdministratorId(Long administratorId) {
		this.administratorId = administratorId;
	}

	public String getAdministratorEmail() {
		return administratorEmail;
	}

	public void setAdministratorEmail(String administratorEmail) {
		this.administratorEmail = administratorEmail;
	}

	public String getAdministratorNickname() {
		return administratorNickname;
	}

	public void setAdministratorNickname(String administratorNickname) {
		this.administratorNickname = administratorNickname;
	}

	public String getAdministratorPortrait() {
		return administratorPortrait;
	}

	public void setAdministratorPortrait(String administratorPortrait) {
		this.administratorPortrait = administratorPortrait;
	}

	public Date getCreateTime() {
		return CommonUtils.cloneDate(createTime);
	}

	public void setCreateTime(Date createTime) {
		this.createTime = CommonUtils.cloneDate(createTime);
	}

	public Date getUpdateTime() {
		return CommonUtils.cloneDate(updateTime);
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = CommonUtils.cloneDate(updateTime);
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getSiteId() {
		return siteId;
	}

	public void setSiteId(String siteId) {
		this.siteId = siteId;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public String getIntroduction() {
		return Introduction;
	}

	public void setIntroduction(String introduction) {
		Introduction = introduction;
	}

	public String getDetailAddress() {
		return detailAddress;
	}

	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public float getStar() {
		return star;
	}

	public void setStar(float star) {
		this.star = star;
	}

	public Integer getVotes() {
		return votes;
	}

	public void setVotes(Integer votes) {
		this.votes = votes;
	}

	public Integer getVisitNum() {
		return visitNum;
	}

	public void setVisitNum(Integer visitNum) {
		this.visitNum = visitNum;
	}

}
